package org.ddl.core.entity;

/**
 * 分库分表上下文
 * 
 * @author yinjianwei
 * @date 2017年9月11日 下午10:41:20
 *
 */
public class DataSourceTable {
	/*
	 * 逻辑表名
	 */
	private String logicTable;

	/*
	 * 真实表名
	 */
	private String tableName;

	/*
	 * 真实数据源key
	 */
	private String dataSourceKey;

	public DataSourceTable() {

	}

	public DataSourceTable(String dataSourceKey, String tableName) {
		this.dataSourceKey = dataSourceKey;
		this.tableName = tableName;
	}

	public String getLogicTable() {
		return logicTable;
	}

	public void setLogicTable(String logicTable) {
		this.logicTable = logicTable;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getDataSourceKey() {
		return dataSourceKey;
	}

	public void setDataSourceKey(String dataSourceKey) {
		this.dataSourceKey = dataSourceKey;
	}

}
